feat: add organization search to global search pipe (IN-1206)#4368
Conversation
Add organizations_filtered.pipe over the organizations_populated_slug datasource (pre-filtered to orgs with activity) and a 4th 'organization' UNION ALL branch in search_collections_projects_repos so the global search bar can return organizations alongside projects, repos, and collections. Deploy order: push organizations_filtered.pipe BEFORE search_collections_projects_repos.pipe (the search pipe references it); a targeted push of only the search pipe fails with 'Resource organizations_filtered not found'. Claude-Session: https://claude.ai/code/session_01JFS7TVQUvsTBRyuihHjtQX Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
PR SummaryLow Risk Overview Adds Updates Deploy: push Reviewed by Cursor Bugbot for commit 3aedd21. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Pull request overview
Adds organization results to the Tinybird global search pipeline.
Changes:
- Adds organization filtering by slug and display name.
- Returns activity-linked organizations ordered by contribution count.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
organizations_filtered.pipe |
Provides reusable organization filters. |
search_collections_projects_repos.pipe |
Adds organizations to unified search results. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - `search`: Required string for searching across all entity types (inherited by filtered pipes) | ||
| - `limit`: Optional integer for result limit per entity type, defaults to 10 | ||
| - Response: `type` ('collection'|'project'|'repository'), `id` (projectId only), `slug`, `logo`, `projectSlug`, `name` | ||
| - Response: `type` ('collection'|'project'|'repository'|'organization'), `id` (projectId only), `slug`, `logo`, `projectSlug`, `name` |
What
Adds organizations as a 4th result type to the global search Tinybird pipe, so the LFX Insights search bar can return organizations alongside projects, repositories, and collections. Backs insights ticket IN-1206.
services/libs/tinybird/pipes/organizations_filtered.pipe— a*_filtered-family sub-pipe over the existingorganizations_populated_slugdatasource, with an optionalsearch(ILIKE ondisplayName) andslugfilter. Mirrorscollections_filtered.pipe.services/libs/tinybird/pipes/search_collections_projects_repos.pipe— adds a 4thUNION ALLbranch selectingtype='organization'(id, slug, logo, displayName→name), ordered bycontributionCount desc. DESCRIPTION updated.